package icu.groot.alan.hotel.enums;

import java.util.ArrayList;
import java.util.List;

public enum RoomStatusEnum{
    RESERVE("预定"), LEISURE("入住"), CHECK_IN("空闲");
    private String status;

    RoomStatusEnum(String status){
        this.status = status;
    }

    @Override
    public String toString() {
        return this.status;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public static List<String> toList(){
        List<String> list = new ArrayList<>();
        list.add(RoomStatusEnum.RESERVE.getStatus());
        list.add(RoomStatusEnum.LEISURE.getStatus());
        list.add(RoomStatusEnum.CHECK_IN.getStatus());
        return list;
    }
}
